package xinyou.jh.net.npcFell
{
	import xinyou.jh.net.JHStruct;
	
	public class NpcFeelStruct extends JHStruct
	{
		
		/*
		 *
		137
		//-- NPC好感 [2012-12-3 14:27:31 WZX]
		enum eCG_NPCFEEL_PROTOCOL
		{
		CG_NPCFEEL_GENERAL_ACK				= 0,	//-- 好感通用返回 [2012-12-3 14:30:36 WZX]
		CG_NPCFEEL_ADDFEEL_SYN					= 1,	//-- 添加好感度请求
		CG_NPCFEEL_ADDFEEL_CMD					= 2,	//-- 添加好感度返回
		CG_NPCFEEL_MKFRIEND_SYN				= 3,	//-- 结交请求 [2012-12-4 9:18:48 WZX]
		CG_NPCFEEL_MKFRIEND_CMD				= 4,	//-- 结交返回  [2012-12-4 9:18:48 WZX]
		CG_NPCFEEL_RELATION_SYN				= 5,	//-- 好感度请求 [2012-12-4 9:18:48 WZX]
		CG_NPCFEEL_RELATION_CMD				= 6,	//-- 好感度返回 [2012-12-4 9:18:48 WZX]
		CG_NPCFEEL_SENDGIFT_SYN				= 7,	//-- 送礼物请求 [2012-12-4 9:20:19 WZX]	
		CG_NPCFEEL_SENDGIFT_CMD				= 8,	//-- 送礼物返回 [2012-12-4 9:20:19 WZX]	
		};
		
		*/
		public function NpcFeelStruct()
		{
			super();
		}
		
		override protected function initReceiverHash():void
		{
			addReceiverHash([137,0],CG_NPCFEEL_GENERAL_ACK);//-- 好感通用返回 [2012-12-3 14:30:36 WZX]
			addReceiverHash([137,2],CG_NPCFEEL_ADDFEEL_CMD);//-- 添加好感度返回
			addReceiverHash([137,4],CG_NPCFEEL_MKFRIEND_CMD);//-- 结交返回  [2012-12-4 9:18:48 WZX]
			addReceiverHash([137,6],CG_NPCFEEL_RELATION_CMD);//-- 好感度返回 [2012-12-4 9:18:48 WZX]
			addReceiverHash([137,8],CG_NPCFEEL_SENDGIFT_CMD);//-- 送礼物返回 [2012-12-4 9:20:19 WZX]	
		}
		
		override protected function initSenderHash():void
		{
			addSenderHash([137,1],CG_NPCFEEL_ADDFEEL_SYN);//-- 添加好感度请求，喝茶博弈之类发送好感度
			addSenderHash([137,3],CG_NPCFEEL_MKFRIEND_SYN);//-- 结交请求 [2012-12-4 9:18:48 WZX]
			addSenderHash([137,5],CG_NPCFEEL_RELATION_SYN);//-- 好感度请求 [2012-12-4 9:18:48 WZX]
			addSenderHash([137,7],CG_NPCFEEL_SENDGIFT_SYN);//-- 好感度请求 [2012-12-4 9:18:48 WZX]
			addSenderHash([137,9],CG_NPCFEEL_ADDEXP_SYN);//-- 加经验测试使用 [2012-12-4 9:20:19 WZX]				
		}

		//--------sender-----------------------
		public var CG_NPCFEEL_ADDFEEL_SYN:XML =
			<struct>
						DWORD			m_dwNPCID;	
						int				m_dwAddFeel;	
			</struct>;
		
		public var CG_NPCFEEL_MKFRIEND_SYN:XML =
			<struct>
						DWORD			m_dwNPCID;	
			</struct>;
		
		public var CG_NPCFEEL_RELATION_SYN:XML =
			<struct>
						DWORD			m_dwNPCID;
			</struct>;
		
		public var CG_NPCFEEL_SENDGIFT_SYN:XML =
			<struct>
						DWORD			m_dwNPCID;		
						DWORD			m_nGiftID;
						DWORD			m_nGiftCount;
			</struct>;
		
		public var CG_NPCFEEL_ADDEXP_SYN:XML =
			<struct>
						int				m_dwAddExp;
			</struct>;
		
		//-------------------------------
		
		//--------receiver-----------------------
		public var CG_NPCFEEL_GENERAL_ACK:XML =
			<struct>
						int					m_iErrorRes;
			</struct>;
		
		public var CG_NPCFEEL_ADDFEEL_CMD:XML =
			<struct>
						DWORD				m_dwNPCID;	
						int					m_dwCurrentFeel;	
			</struct>;
		
		//--暂时先空着--WZX--
		public var CG_NPCFEEL_MKFRIEND_CMD:XML =
			<struct>
						DWORD				m_dwNPCID;	
			</struct>;
		
		public var CG_NPCFEEL_RELATION_CMD:XML =
			<struct>
						DWORD				m_dwNPCID;
						UINT				m_nNPCFeel;//--NPC好感度
						Array	UINT		m_uIMeditationIDs[3];//--此玩家在此NPC身上学习的心法列表WZX
			</struct>;
		
		public var CG_NPCFEEL_SENDGIFT_CMD:XML =
			<struct>
						UINT	m_dwCurrentFeel;
			</struct>;
		//-------------------------------	
		
	}
}